package com.unhz.generator.dao;

import com.unhz.generator.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;

/**
 * Created by cxg on 2017/11/8 0008.
 *
 * @Author 曹显贵
 * @Date 2017/11/8 0008 11:36
 */
public interface BaseMapper<T> {
    int deleteByPrimaryKey(Integer id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(Integer id);

    User findLongUser(String userPhone, String userPassword );

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

    int updatePhone(User u);
}
